import json


class ReadConfig():
    def __init__(self, default_path='config.json'):
        self.configPath = default_path
        self.my_config = self.readConfig(self.configPath)

        # 读入系统基础配置

    def readConfig(self, configPath):
        with open(configPath, 'r', encoding='utf-8') as f:
            all = f.read()
            temp = json.loads(all)

        return temp


if __name__ == '__main__':
    # myreadconfig = ReadConfig()
    myreadconfig = ReadConfig(default_path='../config.json')

    my_config = myreadconfig.my_config

    print(my_config)
